package com.hx.demo28.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hx.demo28.pojo.BoKe;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;

import java.util.List;

public interface BokeDao extends BaseMapper<BoKe>  {

    @Insert("insert into boke (name,leixin,date) values (#{name},#{leixin},#{date})")
    int addfindById(BoKe boKe);

    @Select("select * from boke")
    List<BoKe> findAll();
}
